<div class="content-titulo">
    
    <div class="filtro">
        <form id="form_filtro" method="get" action="">
            <i>Filtrar</i>
            <?php
                
            echo Elementosform::select(array('1'=>'Ativo','0'=>'Inativo'),'dscsta', '', $this->dscsta);
                
            ?>
            
            <input type="text" name="dscfiltro" value="<?php echo $this->dscfiltro; ?>" placeholder="Empresa" />
            
            <input type="submit" class="btn-pdr" name="buscar" value="buscar" />
        </form>
    </div>
    
    
    <div class="content-btn">
        <a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit')); ?>">+</a>
    </div>
    
    <h2><?php echo $this->titulo;?></h2>
    
</div>

<div class="content-list">
    
<?php foreach ($this->result as $row) { ?>
    <div class="item" style="height:100px">    
        <div class="col" style="width: 250px">
            <p><strong>Escola/Empresa: </strong><?php echo $row['EMP_NOM']; ?></p>
            <p><strong>Status: </strong><?php echo tools::returnStatus($row['EMP_STA']); ?></p>
        </div>
        <div class="col" style="width: 200px">
            
        </div>
        
        <div class="col" style="width: 100px">
            
        </div>
        
       
        
        <div class="btn-actions" style="min-width: 90px">
            <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row['EMP_ID'])); ?>">Editar</a><?php }?>
            <?php /* if($this->per_del && $row['EMP_STA'] == 0){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'delete', 'id' => $row['EMP_ID'])); ?>">Desativar</a><?php } */ ?>
        </div>

      </div>
    <?php } ?>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>

